FROM java:8-jre-alpine
MAINTAINER songkaizong

ENV TZ=Asia/Shanghai

RUN apk add --update curl tzdata && rm -rf /var/cache/apk/*

VOLUME /tmp

COPY target/*.jar app.jar

RUN echo $(date) > /image_built_at

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]